package ooDay02;

public class OverrideDemo {
    public static void main(String[] args) {
        Student st = new Student("张伟",34,"花林街","最强班",1233);
        st.sayHi();
        Teacher tc = new Teacher("胡华","跳达街",44,5000);
        tc.sayHi();
        Doctor dc = new Doctor("杨恒","上班大道",33,6000,"手术主任");
        dc.sayHi();
    }
}
